/**
 * 〈〉
 * 考核管理
 * @author 王青杰
 * @create 2018-08-0810:24
 * @since 1.0.0
 */
package org.wlgzs.website.wlgzsoffice.controller.assess;



import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.wlgzs.website.wlgzsoffice.entity.TbAssess;
import org.wlgzs.website.wlgzsoffice.service.AssessService;
import org.wlgzs.website.wlgzsoffice.util.ResultMsg;

import javax.annotation.Resource;

@RestController
@RequestMapping("assess/assess")
public class AssessController {
    @Resource
    AssessService assessService;
    /**
        * @author:wqjhky@gmail.com
    　　* @Description:发起考核
    　　* @param
    　　* @return
    　　* @date 2018-08-08 16:38
    　　*/
    @RequestMapping(value = "/insert",method = RequestMethod.POST)
    public ResultMsg insertAssess(TbAssess assess){

        return assessService.insertAssess(assess);
    }

    /**
        * @author:wqjhky@gmail.com
    　　* @Description: 删除一次考核
    　　* @param
    　　* @return
    　　* @date 2018-08-08 17:06
    　　*/
    @RequestMapping(value = "/delete",method = RequestMethod.POST)
    public ResultMsg delete(int id,int pageNum){
        return assessService.deleteAssess(id);
    }

    /**
        * @author:wqjhky@gmail.com
    　　* @Description:  修改考核内容
    　　* @param
    　　* @return
    　　* @date 2018-08-08 17:07
    　　*/
    @RequestMapping(value = "/update",method = RequestMethod.POST)
    public ResultMsg update(TbAssess assess){
        return assessService.update(assess);
    }

    /**
        * @author:wqjhky@gmail.com
    　　* @Description: 查看考核内容
    　　* @param
    　　* @return
    　　* @date 2018-08-08 17:09
    　　*/

    @RequestMapping(value = "/check",method = RequestMethod.POST)
    public ResultMsg check(int pageNo,TbAssess assess){
        return assessService.checkAllAssess(pageNo,assess);
    }

    /**
        * @author:wqjhky@gmail.com
    　　* @Description: 下载考核评分
    　　* @param
    　　* @return
    　　* @date 2018-08-10 8:15
    　　*/
}
